%% Waterfall plot of CDFs in Disordered Square geometry for sample scale conductivities 0.5, 0, -0.5
clear all; close all;
%%%%%%%%%%%%%%%%%%%% root
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
root = 'D:\';
%%%%%%%%%%
a = 4;
margin = 0.1;

load([root,'Compilation DiodeNatCom\figure 4\CDF_SD.mat'])

hFig = figure('color',[1,1,1],'Units','centimeter','Position',[4,4,a+2*margin,1.6*a+2*margin]); 
ax = axes('Units','centimeters');
ax.Position = [margin,margin, a, 1.6*a];box on;
LW = 3;
AR = 3/5;
offset = 0.33;
hold on;
plot(CDF_SD(1).CDF,'color',[0,0,0],'LineWidth',LW);
plot(CDF_SD(2).CDF+offset,'color',[0,0.25,1],'LineWidth',LW);
plot(CDF_SD(3).CDF+2*offset,'color',[0,0.5,1],'LineWidth',LW);
plot(CDF_SD(4).CDF+3*offset,'color',[0,0.75,1],'LineWidth',LW);

xlim([1,170]);
ylim([0,2])